import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Login.vue')
    },
    {
      path: '/login',
      redirect: '/'
    },
    {
      path: '/index',
      component: () => import('../views/Index.vue')
    },
    {
      path: '/hospital',
      component: () => import('../views/Hospital.vue')
    },
    {
      path: '/appointment',
      component: () => import('../views/Appointment.vue')
    },
    {
      path: '/appointmentcancel',
      component: () => import('../views/Appointmentcancel.vue')
    },
    {
      path: '/appointmentlist',
      component: () => import('../views/Appointmentlist.vue')
    },
    {
      path: '/appointmentsuccess',
      component: () => import('../views/Appointmentsuccess.vue')
    },
    {
      path: '/confirmorder',
      component: () => import('../views/Confirmorder.vue')
    },
    {
      path: '/personal',
      component: () => import('../views/Personal.vue')
    },

    {
      path: '/register',
      component: () => import('../views/Register.vue')
    },
    {
      path: '/report',
      component: () => import('../views/Report.vue')
    },
    {
      path: '/reportlist',
      component: () => import('../views/Reportlist.vue')
    },
    {
      path: '/selectdate',
      component: () => import('../views/Selectdate.vue')
    },
    {
      path: '/setmeal',
      component: () => import('../views/Setmeal.vue')
    },
    {
      path: '/test',
      component: () => import('../views/Test.vue')
    },
    {
      path: '/info',
      component: () => import('../views/PersonalInfo.vue')
    },
    {
      path: '/aitalk',
      component: () => import('../views/AiTalk.vue')
    },
    {
      path:'/echarts',
      component:()=>import('../views/Echarts.vue')
    },
    {
      path:'/chat',
        component:()=>import('../views/Chat.vue')
    },
    {
      path:'/paidconsulation',
      component:()=>import('../views/PaidConsultation.vue')
    },
    {
      path:'/familyappointment',
      component:()=>import('../views/FaminlyAppointment.vue')
    }
  ]
})

export default router
